OBJ += main.o
OBJ += ppp4g.o
OBJ += vpn.o
OBJ += db.o
OBJ += vlan.o
OBJ += function.o
OBJ += cmd_local.o

#OBJ += ./msdhAndUartHandle/uart_init.o
OBJ += ./msdhAndUartHandle/if_unix.o
OBJ += ./msdhAndUartHandle/cmd.o

OBJ += ./msdhSocketHandle/deal_msdh.o
OBJ += ./msdhSocketHandle/drne_list.o
OBJ += ./msdhSocketHandle/sock_pool.o
OBJ += ./msdhSocketHandle/transmit_msdh.o
#OBJ += link.o

FLAGS = -Wall -DSYSLOG -DDEBUG -g -lpthread -lmysqlclient -L ./ -lccloud
CC = g++

main:$(OBJ)  
	$(CC)  $(OBJ) -o $@  $(FLAGS) 
%.o:%.cpp
	$(CC)	-c	$^ -o $@  $(FLAGS)
.PHONY:clean
clean:
	rm main *.o ./msdhAndUartHandle/*.o ./msdhSocketHandle/*.o -rfv	
